<?php


namespace app\common\validate;


class CategoryValidate extends BaseValidate
{
    protected $rule = [
        'name'  => 'require|min:2|max:20',
        'status' => 'require|between:0,1',
        'sort' => 'require|between:0,9999'
    ];

    protected $message = [
        'name' => '分类名称错误',
        'status' => '状态数据错误',
        'sort' => '排序数值范围是0～9999'
    ];
}